import type { IBaseRResponse, ILoginParams } from '@/types/api/user.js'
import request from '@/utils/request.js'

const API = {
  USER_LOGIN: '/api/auth/login', // 登录
}

// 登录
export const userLoginAPI = (data: ILoginParams | null) => request.post<IBaseRResponse>(API.USER_LOGIN, data)
